﻿<%@ Page Language="C#" MasterPageFile="~/TrangQuanLy.master" AutoEventWireup="true" CodeFile="ThemDienThoai.aspx.cs" Inherits="ThemDienThoai" Title="Thêm điện thoại" ValidateRequest="false" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div style="font-family: Arial, Helvetica, sans-serif; font-size: 12pt">
        -&nbsp;&nbsp;&nbsp; Thêm điện thoại</div>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: center;min-height:500px " align="center">
        <br />
        <table style="width:1000;text-align:left" align="center" cellpadding="5" 
            cellspacing="0">
            <tr>
                <td >
                    Tên ĐT:</td>
                <td width="300"  >
                    <asp:TextBox ID="txtten" runat="server" meta:resourcekey="txttenResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtten" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Màn hình:</td>
                <td>
                    <asp:TextBox ID="txtmanghinh" runat="server" meta:resourcekey="txtmanghinhResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txtmanghinh" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Giá:</td>
                <td>
                    <asp:TextBox ID="txtgia" runat="server" meta:resourcekey="txtkieuResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtgia" ErrorMessage="( * )"></asp:RequiredFieldValidator>
&nbsp;<asp:Label ID="Label3" runat="server" ForeColor="Red" Text="Label"></asp:Label>
                </td>
                <td>
                    Camera:</td>
                <td>
                    <asp:TextBox ID="txtcamera" runat="server" meta:resourcekey="txtcameraResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="txtcamera" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Kích thước:</td>
                <td>
                    <asp:TextBox ID="txtkichthuoc" runat="server" meta:resourcekey="txtkichthuocResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtkichthuoc" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Hình ảnh:</td>
                <td>
                    <asp:FileUpload ID="FileUploadsmall" runat="server" meta:resourcekey="FileUploadsmallResource1" />
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                        ControlToValidate="FileUploadsmall" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Trọng lượng:</td>
                <td>
                    <asp:TextBox ID="txttrongluong" runat="server" meta:resourcekey="txttrongluongResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txttrongluong" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Loại Điện Thoại: </td>
                <td>
                    <asp:DropDownList ID="drploaidt" runat="server"
                        DataTextField="tenloai" DataValueField="maloai">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Thẻ nhớ:</td>
                <td>
                    <asp:TextBox ID="txtthenho" runat="server" meta:resourcekey="txtthenhoResource1"></asp:TextBox>
                &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="txtthenho" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                </td>
                <td>
                    Số Lượng Trong Kho:</td>
                                        <td style="text-align: left">
                                            <asp:TextBox ID="txtsoluongtrongkho" runat="server"></asp:TextBox>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                        ControlToValidate="txtsoluongtrongkho" ErrorMessage="( * )"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            Ngày đăng:</td>
                <td>
                    <asp:Calendar ID="Calendar1" runat="server" Width="300px"></asp:Calendar>
                </td>
                <td valign="top">
                    Thông tin:</td>
                <td style="text-align: left" valign=top>
                    <asp:TextBox ID="txtthongtin" runat="server" Height="200px" 
                        TextMode="MultiLine" Width="300px"></asp:TextBox>
                </td>
            </tr>
        </table>
    
    
        <asp:Label ID="Label4" runat="server"></asp:Label>
    
    
        <br />
        <asp:Button ID="Button3" runat="server" CausesValidation="False" PostBackUrl="~/index.aspx"
            Text="Đến trang chủ" onclick="Button3_Click" />
        &nbsp;&nbsp;<asp:Button ID="btnluuthongtin" runat="server" 
            onclick="btnluuthongtin_Click" Text="Lưu Thông Tin" />
        &nbsp;<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Làm lại" meta:resourcekey="Button1Resource1" CausesValidation="False" />
        <br />
        &nbsp;
            </div>
</asp:Content>

